#include <iostream>
#include "UdpServer.hpp"
#include <memory>
#include "Comm.hpp"

#include <stdio.h>
void Usage(std::string proc)
{
    std::cout << "格式：" << proc << " port" << std::endl;
}



int main(int argc, char* argv[])
{
    if(argc != 2)
    {
        Usage(argv[0]);
        return usage_err;
    }

    uint16_t port = std::stoi(argv[1]);
    std::unique_ptr<UdpServer> svr = std::make_unique<UdpServer>(port);

    svr->Init();
    svr->Start();

    return 0;
}